<?php
 $postsQuery = 'SELECT post_id, message, permalink, likes, actor_id, created_time FROM stream WHERE source_id = "'.$_GET['page_id'].'" AND message != "" ';
 if(isset($_GET['page']))
 {
	$limit = intval($_GET['page'])*100;
	$postsQuery .= ' LIMIT 100 OFFSET '.$limit; 
 }
 else
 {
	$postsQuery .= ' LIMIT 100 OFFSET 0';
 }
	
 $postsArray = $facebook->fql($postsQuery);


 include "template/fb_page_manager.php";
?>
